package com.hsgene.goods.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 商品列表项信息
 *
 * @author wangbing
 * @version 1.0, 2018/7/24
 */
public class GoodsOriginItemDto implements Serializable {

    private static final long serialVersionUID = 4180967674163480030L;
    /**
     * 商品编号
     */
    private String id;

    /**
     * 检测机构(supplier_detection_organization)id
     */
    private Long supplierDoId;

    /**
     * 检测机构名称
     */
    private String supplierName;

    /**
     * 套餐名称
     */
    private String goodsName;

    /**
     * 原始价格
     */
    private BigDecimal detectionOriginalPrice;

    /**
     * 发布时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date publishTime;

    /**
     * 状态：待完善、待发布、已发布、修改申请中、上架中、已下架
     */
    private Integer status;

    /**
     * 状态描述
     */
    private String statusDesc;

    /**
     * 商品检测相关信息Map（key：detection_type = 检测类型：肿瘤，detection_locus = 检测位点（如：EGFR），sample_mode = 采样方式（如：唾液、血液、蜡片），detection_mode = 检测方式（如：芯片、二代测序））
     */
    private Map<String, List<GoodsDetectionDto>> detectionMap;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getSupplierDoId() {
        return supplierDoId;
    }

    public void setSupplierDoId(Long supplierDoId) {
        this.supplierDoId = supplierDoId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getDetectionOriginalPrice() {
        return detectionOriginalPrice;
    }

    public void setDetectionOriginalPrice(BigDecimal detectionOriginalPrice) {
        this.detectionOriginalPrice = detectionOriginalPrice;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Map<String, List<GoodsDetectionDto>> getDetectionMap() {
        return detectionMap;
    }

    public void setDetectionMap(Map<String, List<GoodsDetectionDto>> detectionMap) {
        this.detectionMap = detectionMap;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }
}
